package com.example.javafx.bilibilidownload.constant;

public enum BiliVideoEnum {

    Up("up"),
    Favorite("favorite"),
    Single("single"),
    Multi("multi");

    public String type;

    BiliVideoEnum(String type) {
        this.type = type;
    }

    public boolean isUp() {
        return type.equals(Up.type);
    }

    public boolean isFavorite() {
        return type.equals(Favorite.type);
    }

    public boolean isSingle() {
        return type.equals(Single.type);
    }

    public boolean isMulti() {
        return type.equals(Multi.type);
    }
}
